package cn.example.thread;

import java.util.concurrent.Callable;

/**
 * @author July
 * @description
 * @create 2025-09-01 15:06
 */
public class MyCallable implements Callable<String> {

    @Override
    public String call() throws Exception {
        String value = "test";
        System.out.println("Ready to work");
        Thread.currentThread().sleep(5000);
        System.out.println("task done");
        return value;
    }
}
